import type { App, Plugin } from 'vue'
import Editor from './editor.vue'

// 支持 全局 use 使用
Editor.install = (app: App): void => {
  app.component(Editor.name, Editor)
}

export default Editor as typeof Editor & Plugin
